package leetcode_2401_2500;

public class LeeCode_2427 {
    public static void main(String[] args) {

    }
    public int commonFactors(int a, int b) {
        int res = 0;
        for (int i = 1; i <= b; i++) {
            if (a % i == 0 && b % i == 0){
                res++;
            }
        }
        return res;
    }
}
